package cn.ljl.org.service;


import cn.ljl.back.util.PageList;
import cn.ljl.org.domain.Department;
import cn.ljl.org.query.DepartmentQuery;

import java.util.List;

/**
 * 业务接口：部门
 */
public interface IDepartmentService {

    /**
     * 查询所有对象
     * @return
     */
    List<Department> loadAll();

    /**
     * 查询单个对象
     * @param id
     * @return
     */
    Department loadById(Long id);

    /**
     * 保存一个对象
     * @param department
     */
    void save(Department department);

    /**
     * 修改一个对象
     * @param department
     */
    void update(Department department);

    /**
     * 删除一个对象
     * @param id
     */
    void del(Long id);

    /**
     * 分页查询
     * @param departmentQuery
     * @return
     */
    PageList<Department> queryPage(DepartmentQuery departmentQuery);
}
